﻿using System.Text;
using System.Linq;
using System.ComponentModel.DataAnnotations;
using System;
using System.Collections.Generic;
using Wedo.Domain.Models;
using System.ComponentModel;



namespace Wedo.Recognition.Domain.Models
{
    /// <summary>
    /// 争议申请记录
    /// </summary>
    [System.ComponentModel.DisplayName("争议申请记录")]
    public partial class DisputeApply : Entity
    {
        #region 银行账单信息
        /// <summary>
        /// 银行账单编号
        /// </summary>
        public Guid BankDataId { set; get; }

        //新加
        /// <summary>
        /// 银行账单
        /// </summary>
        public BankData BankData { get; set; }
 
        #endregion

        #region 争议信息
        /// <summary>
        /// 争议原因
        /// </summary>
        [DisplayName( "争议原因")]
        [System.ComponentModel.DataAnnotations.StringLength(200, MinimumLength = 5, ErrorMessage = "争议原因文字不能超过200并小于5个")]
        [Required(ErrorMessage = "{0} 不能为空！")]
        public string DisputeReason { set; get; }

        /// <summary>
        /// 申请人
        /// </summary>
        [DisplayName( "申请人")]
        //[DataColumn(60, 100)]
        public string ApplyMan { set; get; }

        /// <summary>
        /// 申请时间
        /// </summary>
        [DisplayName( "申请时间")]
        [System.ComponentModel.DataAnnotations.DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        //[DataColumn(70, 100)]
        public DateTime? ApplyTime { set; get; }

        /// <summary>
        /// 审核人
        /// </summary>
        [DisplayName( "审核人")]
        ////[DataColumn(50, 100)]
        public string Approver { set; get; }

        /// <summary>
        /// 审核时间
        /// </summary>
        [DisplayName( "审核时间")]
        [System.ComponentModel.DataAnnotations.DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        ////[DataColumn(40, 100)]
        public DateTime? ApprovelTime { set; get; }

        /// <summary>
        /// 状态 1 等待审批 2 同意 3 拒绝
        /// </summary>
        [DisplayName( "状态")]
        //[DataColumn(80, 60)]
        public int Status { set; get; }

         #endregion

     }
 
 }
